Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

@chmelevskij
Copy link
Contributor

@chmelevskij chmelevskij commented Dec 31, 2017

Changed how inkbar is moved. Using transform to scale and translate the
inkbar. Also added debounced update to window resize.

Closes #10121

PR Checklist

Please check that your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #10121 mdInkBar doesn't update on screen resize.

What is the new behavior?

Debounced update of the mdInkBar.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Dec 31, 2017
@Splaktar Splaktar added the needs: review This PR is waiting on review from the team label Jan 2, 2018
@Splaktar Splaktar added this to the 1.1.6 milestone Jan 2, 2018
@Splaktar Splaktar requested review from Splaktar and gmoothart January 2, 2018 19:36
@Splaktar Splaktar self-assigned this Jan 2, 2018
@Splaktar Splaktar added P2: required Issues that must be fixed. g3: reported The issue was reported by an internal or external product team. labels Jan 2, 2018
@Splaktar Splaktar modified the milestones: 1.1.6, 1.1.7 Jan 17, 2018
@Splaktar Splaktar modified the milestones: 1.1.7, 1.1.8 Feb 7, 2018
Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just had some minor change requests and a note that this may end up being a breaking change for some apps. We'll see how the presubmit tests go once the code review comments are addressed. Hopefully no one is using those private classes...

@Splaktar
Copy link
Contributor

Oh and I apologize for taking so long to get to this review!

@Splaktar Splaktar removed the needs: review This PR is waiting on review from the team label Mar 16, 2018
@Splaktar Splaktar modified the milestones: 1.1.8, 1.1.9 Mar 16, 2018
@Splaktar Splaktar added the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Mar 27, 2018
@Splaktar Splaktar removed the request for review from gmoothart April 19, 2018 22:40
@Splaktar
Copy link
Contributor

@chmelevskij I would like to get this presubmitted and merged in a release pretty soon. Do you think that you will be able to address the review feedback soon?

@Splaktar Splaktar modified the milestones: 1.1.9, 1.1.10 Apr 19, 2018
@chmelevskij
Copy link
Contributor Author

Hi there, will do that tomorrow, and hopefully submit the changes by the end of this week/ beginning of the next.

@Splaktar
Copy link
Contributor

Excellent, thank you!

@chmelevskij
Copy link
Contributor Author

Pushed the changes from review. Should I squash the commits and make a new PR?

@Splaktar
Copy link
Contributor

@chmelevskij thank you for making those updates. Please squash the commits and then force push them up to this same branch. That will update this PR. We shouldn't need to create a new PR.

Sorry for the delay, I just returned from a couple conferences.

Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you got all of the requested changes but one. Also can you please remove the changes to the package-lock.json?

@Splaktar
Copy link
Contributor

It's possible that this could go into 1.1.10 which we plan to release soon. Can you please address the comments above?

@Splaktar Splaktar modified the milestones: 1.1.13, 1.1.14 Feb 10, 2019
@Splaktar Splaktar modified the milestones: 1.1.14, 1.1.15 Mar 14, 2019
@Splaktar Splaktar modified the milestones: 1.1.15, 1.1.16, 1.1.18, 1.1.19 Mar 29, 2019
@Splaktar
Copy link
Contributor

@chmelevskij can you please do a quick rebase and force push to your branch? Thank you.

@Splaktar Splaktar modified the milestones: 1.1.19, 1.1.20 May 30, 2019
Changed how inkbar is moved. Using transform to scale and translate the
inkbar. Also added debounced update to window resize.

Closes angular#10121
@Splaktar Splaktar modified the milestones: 1.1.20, 1.1.21 Aug 15, 2019
@Splaktar Splaktar removed the needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved label Sep 30, 2019
'</div>',
link: function(scope, element, attrs, ctrl) {

ctrl.width = $window.innerWidth;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the test and lint failures, it appears that $window needs to be injected above into

function MdNavBar($mdAria, $mdTheming) {

angular.element($window).off('resize', onResize);
}

angular.element($window).on('resize', $mdUtil.debounce(onResize, 300));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like $mdUtil needs to be injected too.

@Splaktar
Copy link
Contributor

Thank you for rebasing, but there are some lint and build errors that need to be resolved now.

@Splaktar Splaktar added in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs and removed pr: lgtm This PR has been approved by the reviewer labels Sep 30, 2019
@Splaktar Splaktar modified the milestones: 1.1.21, 1.1.22 Oct 22, 2019
@Splaktar Splaktar modified the milestones: 1.1.22, 1.1.23 Mar 6, 2020
@Splaktar Splaktar removed this from the 1.1.23 milestone May 15, 2020
@Splaktar
Copy link
Contributor

Fixed rebase/lint issues in PR #11912. Closing this one to continue the work there.

@Splaktar Splaktar closed this May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ g3: reported The issue was reported by an internal or external product team. in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs P2: required Issues that must be fixed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mdNavbar > mdNavInkBar: does not update position on screen resize

6 participants